package cn.edu.seu.ssny.vo;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
public class ProjectVo {

    @NotNull(message = "项目ID不能为空")
    private Integer id;
    @NotNull(message = "项目名称不能为空")
    private String name;
    @NotNull(message = "项目所在地不能为空")
    private String city;
    @NotNull(message = "项目描述不能不空")
    @Size(min = 10, max = 500, message = "最短10个字，最长500个字")
    private String description;

    private Date createTime;

    private Double maxColdLoad;

    private Double maxHotLoad;

    private Double area;
}
